#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

void Swap(int* x, int* y)
{
	int cmp = 0;
	cmp = *x;
	*x = *y;
	*y = cmp;
}

int main()
{
	int a = 0, b = 0, c = 0;
	scanf("%d%d%d", &a, &b, &c);
	if (a < b)
	{
		Swap(&a, &b);
	}
	if (a < c)
	{
		Swap(&a, &c);
	}
	if (b < c)
	{
		Swap(&b, &c);
	}
	printf("%d %d %d", a, b, c);
	return 0;
}